Test\Integration\TransactionTest D

Total Complexity 180
Dependencies 25
Dependents 0
Total lines 4,267
Lines of code 3,652
Logical lines of code 1,343
Comment lines 1
Methods 179
Properties 0

Methods 179

Method Rating Maintainability Complexity Lines of code
testSale_withAllAttributes()
S
33 1 111
testCardTypeIndicators()
S
42 1 68
testSnapshotPlanIdAddOnsAndDiscountsFromSubscription()
S
43 1 54
testTransactionsCanBeCreatedWithSharedParams()
S
43 1 52
testFacilitatorDetailsAreReturnedOnTransactionsCreatedViaNonceGranting()
S
45 1 46
testCreateFromTransparentRedirectWithInvalidParams()
S
51 2 29
testSettlementDeclineAltPayTransaction()
S
45 1 44
testSettlementConfirmAltPayTransaction()
S
45 1 43
testBillingPostalCodeIsReturnedWhenRequestedOnTransactionsCreatedViaNonceGranting()
S
45 1 43
testSettleAltPayTransaction()
S
45 1 43
testCreateTransactionUsingEuropeBankAccountNonce()
S
45 1 42
testSaleWithUsBankAccountNonceAndVaultedToken()
S
46 1 42
testCloneTransaction()
S
47 1 39
testCreateFromTransparentRedirect()
S
48 1 37
testSale_storeInVault()
S
47 1 36
testSale_storeInVaultOnSuccessWithSuccessfulTransaction()
S
47 1 36
testCreateFromTransparentRedirect_withParamsInTrData()
S
48 1 34
testSale_andStoreShippingAddressInVault()
S
49 1 31
testRefund_multiplePartialWithPayPal()
S
50 1 30
testUpdateDetails_withInvalidDescriptor()
S
50 1 29
testCreate_withPayeeEmailInOptionsPayPal()
S
51 1 28
testCreateFromTransparentRedirect_withValidationErrors()
S
51 1 27
testCreate_withPayPalCustomField()
S
51 1 27
testSaleWithAccessToken()
S
51 1 27
testSale_storeInVaultOnSuccessWithFailedTransaction()
S
51 1 27
testUpdateDetails_withInvalidProcessor()
S
51 1 27
testGatewayCreateTransactionUsingNonce()
S
51 1 26
testSubmitForSettlement_withAmexRewardsSucceedsEvenIfCardBalanceIsInsufficient()
S
51 1 26
testSubmitForSettlement_withAmexRewardsSucceedsEvenIfCardIsIneligible()
S
51 1 26
testSubmitForSettlement_withAmexRewardsSucceeds()
S
51 1 26
testCreate_withPayeeEmailInOptions()
S
51 1 26
testGatewayRejectionOnAvsAndCvv()
S
52 1 25
testSale_withThreeDSecureOptionRequired()
S
52 1 25
testSale_withThreeDSecureOptionRequiredInSnakeCase()
S
52 1 25
testSale_returnsErrorIf3dsLookupDataDoesNotMatchTransactionData()
S
53 1 25
testUpdateDetails_withInvalidOrderId()
S
52 1 25
testUpdateDetails_withInvalidAmount()
S
52 1 25
testSale_withExistingCustomer_storeInVault()
S
52 1 25
testUpdateDetails()
S
52 1 25
testCreate_withPayeeEmail()
S
52 1 25
testGatewayRejectionOnAvs()
S
52 1 25
testGatewayRejectionOnApplicationIncomplete()
S
53 1 24
testCreate_withOnetimePayPalAndDoesNotVault()
S
52 1 24
testCreate_withVaultedPayPal()
S
52 1 24
testCreate_withFuturePayPalAndVault()
S
52 1 24
testCreate_withPayPalSupplementaryData()
S
53 1 24
testSale_withAmexRewardsSucceeds()
S
52 1 24
testSale_withAmexRewardsSucceedsEvenIfCardIsIneligible()
S
52 1 24
testSale_withAmexRewardsSucceedsEvenIfCardBalanceIsInsufficient()
S
52 1 24
testSubmitForSettlement_withDescriptor()
S
53 1 23
testCreate_withPayPalDescription()
S
53 1 23
testSubmitForPartialSettlement_withDescriptor()
S
53 1 23
testSale_withBillingAddressId()
S
53 1 23
testSale_withShippingAddressId()
S
53 1 23
testSale_withTravelCruiseIndustryDataValidation()
S
53 1 23
testSaleWithUsBankAccountNonce()
S
53 1 23
testGatewayRejectionOnCvv()
S
54 1 22
testSale_withExistingCustomer()
S
53 1 22
testUpdateDetails_withBadStatus()
S
54 1 22
testSale_withLodgingIndustryDataValidation()
S
54 1 22
testSale_withDescriptorValidation()
S
54 1 22
testCreate_withOnetimePayPal()
S
54 1 21
testSale_returnsErrorsWhenThreeDSecurePassThruEciFlagIsInvalid()
S
54 1 21
testSaleWithIdealPaymentId()
S
54 1 21
testCreate_withFuturePayPal()
S
54 1 21
testCreateTransactionUsingFakeAndroidPayNetworkTokenNonce()
S
54 1 21
testSale_returnsErrorsWhenThreeDSecurePassThruMerchantAcountDoesNotSupportCardType()
S
54 1 21
testSale_returnsErrorsWhenThreeDSecurePassThruIsMissingEciFlag()
S
54 1 21
testSale_returnsErrorsWhenThreeDSecurePassThruIsMissingCavvOrXid()
S
54 1 21
testCreateTransactionUsingFakeAndroidPayProxyCardNonce()
S
53 1 21
testCreateTransactionUsingNonce()
S
55 1 20
testCreateTransactionUsingFakeAmexExpressCheckoutNonce()
S
54 1 20
testSubmitForPartialSettlement()
S
54 1 20
testSale_withThreeDSecureToken()
S
56 1 20
testSale_withTravelCruiseIndustryData()
S
55 1 20
testSale_withHoldInEscrowFailsForMasterMerchantAccount()
S
56 1 19
testSale_withDescriptor()
S
56 1 19
testSale()
S
55 1 19
testSale_withLodgingIndustryData()
S
56 1 19
testCreate_withPayPalHandlesBadUnvalidatedNonces()
S
55 1 19
testRefund_partialWithPayPal()
S
56 1 19
testRefund_withPayPalAssignsRefundId()
S
56 1 18
testUpdateDetails_withInvalidParams()
S
57 1 18
testCreateTransactionReturnsPaymentInstrumentType()
S
56 1 18
testCreate_withPayPalReturnsPaymentInstrumentType()
S
56 1 18
testSale_withLevel2Attributes()
S
56 1 18
testRefund_withPayPalFailsifAlreadyRefunded()
S
56 1 18
testSale_returnsErrorIfThreeDSecureToken()
S
57 1 17
testSubmitForRelease_fromEscrowFailsForTransactionsNotHeldInEscrow()
S
57 1 17
testRefund_withPayPalAssignsRefundedTransactionId()
S
57 1 17
testSale_withHoldInEscrow()
S
57 1 17
testRefundWithOptionsParam()
S
58 1 17
testSale_withThreeDSecurePassThru()
S
57 1 17
testHoldInEscrow_afterSaleFailsWithMasterMerchantAccount()
S
57 1 17
testCreateTransactionUsingFakeVenmoAccountNonce()
S
56 1 17
testSubmitForPartialSettlementUnsuccesful()
S
57 1 16
testIncludeProcessorSettlementResponseForSettlementPendingTransaction()
S
57 1 16
testIncludeProcessorSettlementResponseForSettlementDeclinedTransaction()
S
57 1 16
test_countryValidationError_inconsistency()
S
57 1 16
testSaleAndSkipAvs()
S
58 1 16
testCreateTransactionUsingFakeApplePayNonce()
S
57 1 16
testSale_withCustomFields()
S
58 1 16
testSale_underscoresAllCustomFields()
S
58 1 16
testSale_withInvalidCustomField()
S
58 1 16
testCredit()
S
57 1 16
testVoid_withValidationError()
S
57 1 16
createEscrowedTransaction()
S
58 1 16
testMultipleRefundsWithPartialAmounts()
S
58 1 15
testRefund_withPayPal()
S
58 1 15
testSubmitForPartialSettlement_withOrderId()
S
58 1 15
testSaleAndSkipAdvancedFraudChecking()
S
59 1 15
testSaleAndSkipCvv()
S
59 1 15
testSale_isInvalidIfTransactionMerchantAccountIsNotSub()
S
58 1 15
test_countryValidationError_incorrectAlpha3()
S
58 1 15
test_countryValidationError_incorrectAlpha2()
S
58 1 15
testFind()
S
58 1 15
testFindExposesDisputes()
S
57 1 15
testCloneWithValidations()
S
58 1 15
test_countryValidationError_incorrectNumericCode()
S
58 1 15
testSubmitForSettlement_withOrderId()
S
58 1 15
testFindExposesPayPalDetails()
S
59 1 15
testSale_withVenmoSdkSession()
S
59 1 15
testRecurring()
S
59 1 14
testSubmitForSettlement_withAmount()
S
59 1 14
testTransactionSourceWithRecurring()
S
59 1 14
testSubmitForSettlement_amountLessThanServiceFee()
S
59 1 14
testCreditNoValidate()
S
59 1 14
testSale_withProcessorDecline()
S
59 1 14
testSubmitForSettlement_nullAmount()
S
59 1 14
testSaleWithInvalidUsBankAccountNonce()
S
59 1 14
testSale_withServiceFee()
S
59 1 14
testSale_withExpirationMonthAndYear()
S
59 1 14
testSaleNoValidate()
S
59 1 14
testSale_withInvalidPurchaseOrderNumber()
S
59 1 14
testVoidNoValidate_throwsIfNotInvalid()
S
59 1 14
testSale_withTooLongPurchaseOrderAttribute()
S
59 1 14
testSaleWithRiskData()
S
60 1 14
testCloneTransactionAndSubmitForSettlement()
S
59 1 14
testSale_withServiceFeeTooLarge()
S
59 1 14
testSale_withInvalidTaxAmountAttribute()
S
59 1 14
testTransactionSourceWithMoto()
S
59 1 14
testSale_withRiskData()
S
60 1 14
testSale_isInvalidIfSubMerchantAccountHasNoServiceFee()
S
59 1 14
testHoldInEscrow_afterSale()
S
59 1 14
testSale_withMerchantAccountId()
S
60 1 13
testCredit_withMerchantAccountId()
S
60 1 13
testCredit_withServiceFeeNotAllowed()
S
60 1 13
testCreate_withPayPalAndSubmitForSettlement()
S
60 1 13
testVoid()
S
60 1 13
testCreateTransactionUsingRawApplePayParams()
S
60 1 13
testCreateTransactionUsingRawApplePayParamsInSnakeCaseForBackwardsCompatibility()
S
60 1 13
testSubmitForSettlementNoValidate_whenValidWithoutAmount()
S
60 1 13
testSubmitForSettlementNoValidate_whenValidWithAmount()
S
60 1 13
testSubmitForSettlementNoValidate_whenInvalid()
S
61 1 12
createTransactionToRefund()
S
61 1 12
testSale_withoutMerchantAccountIdFallsBackToDefault()
S
61 1 12
testRefund_withPayPalFailsIfNotSettled()
S
60 1 12
testCredit_withoutMerchantAccountIdFallsBackToDefault()
S
61 1 12
testGatewayRejectionOnFraud()
S
61 1 12
testVoidNoValidate()
S
61 1 12
testCreateTransactionUsingFakeCoinbaseNonce()
S
61 1 12
testSubmitForPartialSettlement_withInvalidParams()
S
61 1 12
testSale_withFraudParams()
S
62 1 12
testSubmitForSettlement_withInvalidParams()
S
61 1 12
testCreate_withPayPalHandlesNonExistentNonces()
S
61 1 12
testFindExposesDisbursementDetails()
S
62 1 11
createTransactionViaTr()
S
63 1 11
testSubmitForRelease_FromEscrow()
S
69 1 6
testSale_withVenmoSdkPaymentMethodCode()
S
64 1 9
testVoid_failsOnDeclinedPayPal()
S
65 1 9
testVoid_withPayPal()
S
63 1 10
testRefundWithUnsuccessfulPartialAmount()
S
63 1 10
testFindExposesThreeDSecureInfo()
S
66 1 8
testRefundWithPartialAmount()
S
67 1 7
testRefund()
S
64 1 9
testFindExposesNullThreeDSecureInfo()
S
75 1 4
testCancelRelease_fromEscrowFailsIfTransactionNotSubmittedForRelease()
S
63 1 10
testCancelRelease_fromEscrow()
S
64 1 10
testFindExposesRetrievals()
S
63 1 10